# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-httpx-socks
_pkgname=httpx-socks
pkgver=0.10.1
pkgrel=1
pkgdesc='Proxy (HTTP, SOCKS) transports for httpx.'
url='https://pypi.org/project/httpx-socks/#files'
arch=('any')
license=('Apache')
depends=('python' 'python-httpx' 'python-python-socks')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2ac929efdb48394c678006b6c768f243459ba42e91b476cc0267ae73548e687b69d252001360f731a0b45a7da41b2ca705bca259b6751d82f52a1164d7fcff31')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

